import os
    
def get_sqlite_config(
    sqlite_path: str,
    pool_size: int = 20
) -> dict:
    file_path: str = os.path.join(sqlite_path, "db.sqlite3")
    
    tortoise_orm: dict = {
        "connections": {
            "sqlite": {
                "engine": "tortoise.backends.sqlite",
                "credentials": {"file_path": file_path},
                "pool_size": pool_size
            },
        },
        "apps": {
            "models": {
                "models": ["app.db_model", "aerich.models"],
                # 设置 key 值 "default" 的数据库连接
                "default_connection": "sqlite",
            },
        },
        "use_tz": False,
        "timezone": "Asia/Shanghai",
    }
    return tortoise_orm